home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kate / mainwindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.7 KB  |  66 lines

  1. /* This file is part of the KDE project
  2.    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License version 2 as published by the Free Software Foundation.
  7.  
  8.    This library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Library General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU Library General Public License
  14.    along with this library; see the file COPYING.LIB.  If not, write to
  15.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16.    Boston, MA 02110-1301, USA.
  17. */
  18.  
  19. #ifndef _KATE_MAINWINDOW_INCLUDE_
  20. #define _KATE_MAINWINDOW_INCLUDE_
  21.  
  22. #include <qobject.h>
  23.  
  24. #include <kxmlguifactory.h>
  25. #include <kurl.h>
  26.  
  27. namespace Kate
  28. {
  29.  
  30. class ViewManager;
  31.  
  32. class KDE_EXPORT MainWindow : public QObject
  33. {
  34.   friend class PrivateMainWindow;
  35.  
  36.   Q_OBJECT
  37.  
  38.   public:
  39.     MainWindow (void *mainWindow);
  40.     virtual ~MainWindow ();
  41.  
  42.   public: /*these are slots for kjs*/
  43.     KXMLGUIFactory *guiFactory() const;
  44.  
  45.   public slots:
  46.     Kate::ViewManager *viewManager () const;
  47.  
  48.   public :
  49.     /**
  50.      * Access the widget (in the middle of the 4 sidebars) in which the editor
  51.      * component and the KateTabBar are embedded. This widget is a QVBox, so
  52.      * other child widgets can be embedded unter the editor widget.
  53.      */
  54.     class QWidget *centralWidget() const;
  55.     class ToolViewManager *toolViewManager() const;
  56.  
  57.   private:
  58.     class PrivateMainWindow *d;
  59. };
  60.  
  61. }
  62.  
  63. #endif
  64.  
  65. // kate: space-indent on; indent-width 2; replace-tabs on;
  66.